package com.source.labelAndBarcode.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author Iceberg777
 */
@Data
@ContentRowHeight(15)
@HeadRowHeight(25)
@ColumnWidth(25)
@ExcelIgnoreUnannotated
public class StallsVo {

    @ApiModelProperty(value = "档口id")
    @TableId(value = "stallsId", type = IdType.AUTO)
    private Integer stallsId;

    @ApiModelProperty(value = "档口编号")
    @TableField("stallsNumber")
    @ExcelProperty(value = "档口编号", index = 0)
    private String stallsNumber;

    @ApiModelProperty(value = "档口介绍")
    @TableField("introduction")
    private String introduction;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "createDate", fill = FieldFill.INSERT)
    private Date createDate;

    @ApiModelProperty(value = "所属的屠宰场id")
    @TableField("slaughterHouseId")
    private String slaughterHouseId;

    @ApiModelProperty(value = "变更信息")
    @TableField("changeInformation")
    private String changeInformation;

    @ApiModelProperty(value = "开始经营日期")
    @TableField("commencementDate")
    private Date commencementDate;

    @ApiModelProperty(value = "简介")
    @TableField("stallsIntroduction")
    private String stallsIntroduction;

    @ApiModelProperty(value = "名称")
    @TableField("stallsName")
    @ExcelProperty(value = "档口名", index = 1)
    private String stallsName;

    @ApiModelProperty(value = "照片")
    @TableField("stallsPictures")
    private String stallsPictures;

    @ApiModelProperty(value = "状态（0已删1正常2发布待审核3删除待审核）")
    private Integer status;

    @ApiModelProperty(value = "逻辑删除")
    @TableField("isDelete")
    @TableLogic
    private Boolean isDelete;

    @ApiModelProperty(value = "档口二维码")
    @TableField("stallsCode")
    private String stallsCode;

    @ApiModelProperty(value = "档口负责人（档口的使用者）")
    @TableField("userId")
    private String userId;

    //新增部分

    @ApiModelProperty(value = "屠宰场名字")
    @TableField("slaughterHouseName")
    @ExcelProperty(value = "所属市场", index = 2)
    private String slaughterHouseName;

    @ApiModelProperty(value = "用户名")
    @TableField("name")
    @ExcelProperty(value = "档口负责人", index = 3)
    private String name;

    @ApiModelProperty(value = "qq")
    @TableField("qq")
    @ExcelProperty(value = "负责人qq", index = 5)
    private String qq;

    @ApiModelProperty(value = "微信号")
    @TableField("wechat")
    @ExcelProperty(value = "负责人微信", index = 6)
    private String wechat;

    @ApiModelProperty(value = "二维码相对路径")
    @TableField("wechatCode")
    private String wechatCode;

    @ApiModelProperty(value = "电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "手机号")
    @TableField("mobile")
    @ExcelProperty(value = "负责人联系方式", index = 4)
    private String mobile;

    //private String createName;

}
